/* api地址 */
const API_BASE = process.env.NODE_ENV === 'production' ? 'http://sportapi.co.xiaoquio.com' : 'http://sportapi.co.xiaoquio.com'
const PROJECT_BASE_URL = 'http://sport.co.xiaoquio.com'
/* 微信授权url */
const WX_AUTH_URL = PROJECT_BASE_URL + '/wechat/toAuthorHandlePage'
// jssdk 用
const PROJECT_URL = PROJECT_BASE_URL + '//ydj/index.html'
/* 新闻分类id */
const NEWS_ID = 1
const LIVE_ID = 2
/* 性别 */
const GENDER = new Map([[0, '保密'], [1, '男'], [2, '女']])
const GEO_DEFAULT = {
  lng: 120.7555,
  lat: 30.74501,
  time: Math.round(new Date(2019, 0, 1) / 1000),
  address: '嘉兴市政府'
}
const ACCESS_TOKEN_KEY = 'YDJ_ACCESS_TOKEN'
const REFRESH_TOKEN_KEY = 'YDJ_REFRESH_TOKEN'
const USER_INFO = 'YDJ_USERINFO'
const OPENID_KEY = 'D513FF19ECACAD26E1D192BB2F889AAF'
const BEFORE_URL_KEY = 'beforeLoginUrl'

const AMAP_KEY = '27bb1cfd99b20db0cd15533958dc1113' // 高德key
const AMAP_WEB_KEY = '83f63b82a0aefb004a9dcce0dab15df6'
const POSITION_KEY = 'YDJ_POSITION'
const ADDRESS_KEY = 'YDJ_ADDRESS'

export {
  API_BASE,
  WX_AUTH_URL,
  PROJECT_URL,
  PROJECT_BASE_URL,
  NEWS_ID,
  LIVE_ID,
  GENDER,
  GEO_DEFAULT,
  ACCESS_TOKEN_KEY,
  REFRESH_TOKEN_KEY,
  USER_INFO,
  OPENID_KEY,
  BEFORE_URL_KEY,
  AMAP_KEY,
  AMAP_WEB_KEY,
  POSITION_KEY,
  ADDRESS_KEY
}
